﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class KHLogoutControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] != null)
        {
            lblUser.Text = Session["username"].ToString();
        }
    }
    protected void lbtLogout_Click(object sender, EventArgs e)
    {
        Session["username"] = null;
        Response.Redirect("~/HomePage.aspx");
    }
}